%option noyywrap
%{
   #include<stdio.h>
   #include<set>
   #include<string>
   using namespace std;
   float n;
   float m;
   int c=0;
   set<string> seta;	
%}
digit [0-9]
number {digit}+(\.{digit}+)?
%%
^{digit}{9} {printf("201492263");}
NAME$  {printf("WH");}
{number} {
m=atof(yytext);
n=(float)(m*2+201492263+0.5);
printf("%.f",n);
c++;
seta.insert(yytext);
}
. {ECHO;}
%%
int main()
{
   yylex();
   printf("the number is:%d,after remove the repeat:%d\n",c,seta.size());
   return 0;
}
